import Message from "./Message.vue";
import Vue from "vue";

let MessageConstructor =  Vue.extend(Message);

let message = (option)=>{
  let instance = new MessageConstructor();
  instance.$mount(document.createElement("div"));
  document.body.appendChild(instance.$el);
  instance.message = option.message;
  instance.type = option.type;
  instance.show = true;
}



export default message;